:root {
    --toolbar-height: 60px;
    --tab-content-height: 640px;
}

html,
body {
    font-family: "Microsoft YaHei";
    font-weight: normal;
    /*font-size: 20px;*/
    margin: 0px;
    padding: 0px;
}

#new-package-form{
    position: absolute;
    height: calc(100% - 55px);
    width: 100%;
}

#slave-target,
#plugin-target,
#enviroment-variable,
#build-status {
    display: block;
    position: absolute;
    overflow-y: auto;
    overflow-x: hidden;
}

#cad-version-config {
    display: block;
    float: left;
}

#cad-version-config>div {
    padding-top: 5px;
}

#tool-button {
    position: absolute;
    padding-left: 20px;
    width: calc(100% - 60px);
}

#cad-version-config input {
    vertical-align: middle;
}

#slave-addr {
    margin-left: 200px
}

#slave-addr>div {
    padding-top: 5px;
}

#slave-addr select {
    vertical-align: middle;
}

#slave-addr>div>lable {
    padding-left: 10px;
}

.close{
    color:#e74c3c;
}

.connect{
    color: rgb(53, 183, 111);
}

.busy{
    color: orange;
}

#plugin-target>div {
    padding: 5px;
}

#plugin-target>.activity {
    border: 1px rgb(53, 183, 111) solid;
    box-sizing: border-box;
    padding: 4px;
}

#vairable-labels {
    display: block;
    float: left;
}

#vairable-labels>div {
    padding-top: 10px;
}

#variable-values {
    margin-left: 200px
}

#variable-values>div {
    padding-top: 10px;
}

#variable-values select {
    vertical-align: middle
}


/* checkbox 自定义*/
.checkbox-wrap {
    position: relative;
}

.checkbox-wrap input[type="checkbox"] {
    display: none;
}

.checkbox-wrap input[type="checkbox"]+label {
    display: inline-block;
    text-align: left;
    -webkit-box-sizing: border-box;
}

.checkbox-wrap input[type="checkbox"]+label:hover {
    cursor: pointer;
}

.checkbox-wrap label::before {
    content: '';
    width: 10px;
    height: 5px;
    display: inline-block;
    top: 4px;
    left: 4px;
    border: 2px rgb(53, 183, 111) solid;
    border-top: none;
    border-right: none;
    background: transparent;
    opacity: 0;
    transform: rotate(-45deg) translateY(-5px);
    transition: opacity ease .5s
}

.checkbox-wrap input[type="checkbox"]:checked+label::before {
    opacity: 1;
}

.slideThree {
    width: 80px;
    height: 22px;
    background: lightgray;
    /*margin: 20px auto;*/
    position: relative;
    -moz-border-radius: 50px;
    -webkit-border-radius: 50px;
    border-radius: 50px;
    -moz-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2);
    -webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2);
    box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2);
}

.slideThree:before {
    content: 'ON';
    color: rgb(53, 183, 111);
    position: absolute;
    left: 10px;
    z-index: 0;
    font: 12px/26px Arial, sans-serif;
    font-weight: bold;
}

.slideThree:after {
    content: 'OFF';
    color: #e74c3c;
    position: absolute;
    right: 10px;
    z-index: 0;
    font: 12px/26px Arial, sans-serif;
    font-weight: bold;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.15);
}

.slideThree input[type=checkbox] {
    visibility: hidden;
}

.slideThree label {
    display: block;
    width: 33px;
    height: 16px;
    cursor: pointer;
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 1;
    background: #fcfff4;
    background: -moz-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
    background: -webkit-linear-gradient(top, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
    background: linear-gradient(to bottom, #fcfff4 0%, #dfe5d7 40%, #b3bead 100%);
    -moz-border-radius: 50px;
    -webkit-border-radius: 50px;
    border-radius: 50px;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    -moz-box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
}

.slideThree input[type=checkbox]:checked+label {
    left: 43px;
}


/*按钮自定义*/

.btn {
    position: relative;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    font-size: 15px;
    font-weight: bold;
    height: 35px;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid #ddd;
    color: #666;
    background: #f5f5f5;
}

.btn-primary {
    color: #F3F7FC;
    background: rgb(53, 183, 111);
    transition: 0.3s
}

.btn-primary:hover {
    background-color: rgba(53, 183, 111, 0.8);
    transition: 0.3s
}

.btn-disable {
    color: #F3F7FC;
    cursor: default;
    background-color: gray;
}

.btn-primary:active {
    background-color: #e74c3c;
    transition: 0.3s
}


/* tab页签样式 */
.tab-wrapper {
    position: relative;
    background-color: rgb(53, 183, 111);
    /*width: 600px;*/
    width: 100%;
    height: 100%;
}

.tab-wrapper .tab-radio {
    display: none;
}

.tab-handler {
    position: relative;
    /*z-index: 2;*/
    display: block;
    float: left;
    height: var(--toolbar-height);
    padding: 0 30px 0 30px;
    color: #fff;
    font-size: 16px;
    line-height: var(--toolbar-height);
    transition: .3s;
    transform: scale(.9);
}

.tab-radio:checked+.tab-handler {
    color: #fff;
    background-color: #e74c3c;
    transform: scale(1);
}

.tab-radio:checked+.tab-handler+.tab-content {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.tab-wrapper .tab-content {
    visibility: hidden;
    position: absolute;
    width: calc(100% - 20px);
    height: calc(100% - 20px - var(--toolbar-height));
    margin-top: var(--toolbar-height);
    padding: 10px;
    color: #999;
    font-size: 14px;
    line-height: 1.618em;
    background-color: #fff;
    opacity: 0;
    transition: transform .5s, opacity .7s;
    /*transform: translateY(20px);*/
}